
/*


Author :Vishwajeet Dusane
*/

#include"powerMethod.h"



int main(int argc,char *argv[])
{
PowerMethod p;

  if(argc==1)
  {
     
     p.findMaxEigenValue("example1","example1B");
     p.findMinEigenValue("example1","example1B");
  }   
 else
  if(argc==3)
  {
    p.findMaxEigenValue(argv[1],argv[2]);
    p.findMinEigenValue(argv[1],argv[2]);
   }  
 else
  if(argc==2)     
  {
    cout<<"ERROR: WHILE CALCULATING MATRIX  "<<argv[1]<<endl;
    exit(0);
  }  
 else
   {
    cout<<"ERROR : TOO MANY ARGUMENTS"<<endl;
    exit(0);
   }
 

 

 
return 0;
}
